package impl.util;

import impl.gui.UDecideLogPanel;

public class UDecideLog {

	public static void info(String s) {
		UDecideLogPanel logPanel = UDecideLogPanel.getInstance();

		if (logPanel != null) {
			logPanel.info(s);
		} else {
			System.out.println("Info: " + s);
		}
	}

	public static void warning(String s) {
		UDecideLogPanel logPanel = UDecideLogPanel.getInstance();

		if (logPanel != null) {
			logPanel.warning(s);
		} else {
			System.out.println("Warning: " + s);
		}
	}

	public static void error(String s) {
		UDecideLogPanel logPanel = UDecideLogPanel.getInstance();

		if (logPanel != null) {
			logPanel.error(s);
		} else {
			System.out.println("Error: " + s);
		}
	}

}
